<%-- 
    Document   : w_viewRequest
    Created on : Nov 29, 2013, 3:39:38 PM
    Author     : Trang
--%>

<%@page import="model.Role"%>
<%@page import="model.Staff"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<%
    Staff staff = (Staff) session.getAttribute("staff");

    if (staff == null) {
        response.sendRedirect(request.getContextPath() + "/Administration");
    } else {
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Warehousing Management</title>
        <link href="<%= request.getContextPath()%>/css/style_for_page.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_menu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_addtion.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/adMenu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/tHeaderFooter.css" rel="stylesheet" type="text/css"/>
    </head>
    <%int i = 0;%>
    <body class="container">
        <header>
            <div class="header"> 
                <%@include file="/include/mHeader.jsp" %>
            </div>
            <div class="adContent">
                <div class="adMenu">
                    <%@include file="/include/mMenu.jsp" %>
                </div>
            </div>
        </header>
        <div class="divcontent">
            <div class="content2">
                <div class="registerbg" >
                    <div class="staffLink">
                        <h3>Control Panel</h3>
                        <%@include file="/include/mProfileMenu.jsp" %>
                    </div>
                    <div class="staffInformation">
                        <div style="margin: auto;width: 800px;" class="requestable">  
                            <table>
                                <tbody>
                                <form name="fom" method="post"> 
                                    <s:iterator value="requests">
                                        <% i++;%>
                                        <tr>
                                            <td style="float: left;width: 670px;height:60px;text-align: left;">
                                                <a href="<%= request.getContextPath()%>/Administration/Member/approve-submit-decision/<s:property value='idRequest'/>"</a>
                                                <s:property value="staff1.loginName"/> <br> <b><i><s:property value="createDate"/></i></b>
                                            </td>
                                            <td style="float: right;width: 100px;height:60px;text-align: center;">
                                                <b><s:property value="status"/>
                                                    <br><s:property value="approve"/></b>
                                            </td> 
                                        </tr>
                                        
                                    </s:iterator> 
                                        
                                </form>
                                </tbody>
                            </table>
                  
                                           <h3><s:property value="arler" />
                                   
                        </div>    
                    </div>   
                </div> 
            </div>
        </div>
        <footer>
            <div id="footer">
                <%@include file="/include/iFooter.jsp" %>
            </div>   
        </footer>

    </body>
</html>
<%
    }
%>

